/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.penguin.modules.field.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;

import com.thinkgem.jeesite.common.config.Global;
import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.web.BaseController;
import com.thinkgem.jeesite.common.utils.StringUtils;
import com.thinkgem.penguin.modules.field.entity.FieldDailyTask;
import com.thinkgem.penguin.modules.field.service.FieldDailyTaskService;

/**
 * 日常任务生成Controller
 * @author 余小凡
 * @version 2015-05-22
 */
@Controller
@RequestMapping(value = "${adminPath}/field/fieldReport")
public class FieldReportController extends BaseController {
 
	@RequiresPermissions("field:fieldDailyTask:view")
	@RequestMapping(value = {"performance", ""})
	public String fieldPerformance(FieldDailyTask fieldDailyTask, HttpServletRequest request, HttpServletResponse response, Model model) {
		return "modules/field/fieldReportPerformance";
	}
  
	@RequiresPermissions("field:fieldDailyTask:view")
	@RequestMapping(value = {"task", ""})
	public String task(FieldDailyTask fieldDailyTask, HttpServletRequest request, HttpServletResponse response, Model model) {
		return "modules/field/fieldReportTask";
	}
}